#!/bin/sh

netok=`curl https://www.baidu.com | grep "百度一下" | wc -l`
if [ $num -lt 1 ];then
    ssh admin@192.168.3.7 reboot
fi